<% if @content %>
    feedbin.updateDialog("<%= Dialog::ExtractedContent.dom_id %>", "<%= j render Dialog::ExtractedContent.new(page: @content_info, content: @content) %>");
<% else %>
    feedbin.updateDialog("<%= Dialog::ExtractedContent::Error.dom_id %>", "<%= j render Dialog::ExtractedContent::Error.new(url: @url) %>");
<% end %>

feedbin.formatLinkContents();